﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using HRProject.Code.Common;

namespace HRProject.Component
{
    public partial class SaleSalaryTab : System.Web.UI.UserControl
    {
        private List<TabItem> tabList1;
        private List<TabItem> tabList2;
        private string selectedTab1;
        private string selectedTab2;

        public List<TabItem> TabList1
        {
            get { return tabList1; }
        }

        public List<TabItem> TabList2
        {
            get { return tabList2; }
        }

        public string SelectedTab1
        {
            get { return selectedTab1; }
        }

        public string SelectedTab2
        {
            get { return selectedTab2; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            selectedTab1 = (string)Page.Items["tab_navigation_1"];
            if (selectedTab1 == null)
            {
                selectedTab1 = "basicsalary";
            }
            selectedTab2 = (string)Page.Items["tab_navigation_2"];
            if (selectedTab2 == null)
            {
                selectedTab2 = "";
            }

            tabList1 = new List<TabItem>();
            tabList1.Add(new TabItem("basicsalary", ContentProvider.GetString("BasicSalary"), "/Salary/Sale/BasicSalary.aspx"));

            tabList2 = new List<TabItem>();
        }
    }
}